package com.fafu.ioc.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.List;
import java.util.Map;

@Data
@Configuration
//该注解是将前缀为student的值一一注入进去, 我们可以在Controller中使用注入进行演示
@ConfigurationProperties("student")
public class StudentConfig {
    private Integer id;
    private String name;
    private Integer age;
    List<String> list;
    Map<Character,Integer> map;

}
